const objArr = [{
    name:'liuyi',
    pass:true
},{
    name:'liuhhh',
    pass:true
}]

const str = JSON.stringify(objArr);

console.log(typeof(objArr),objArr);
console.log(typeof(str),str);

